package cn.pxs.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Document("t_comment")
public class Comment {
    @Id
    private String id;
    private String text;
    private String uid;
    private Date trpess;
    private int like;

    @Override
    public String toString() {
        return "Comment{" +
                "id='" + id + '\'' +
                ", text='" + text + '\'' +
                ", uid='" + uid + '\'' +
                ", trpess=" + trpess +
                ", like=" + like +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Date getTrpess() {
        return trpess;
    }

    public void setTrpess(Date trpess) {
        this.trpess = trpess;
    }

    public int getLike() {
        return like;
    }

    public void setLike(int like) {
        this.like = like;
    }
}
